package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@ApiModel(value = "顾客实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "db_customer")
public class Customer implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "Customer_id",type = IdType.AUTO)
    @ApiModelProperty(value = "顾客唯一编号")
    private String id;

    @TableField(value = "Customer_tel")
    @ApiModelProperty(value = "顾客联系电话")
    private String tel;

    @TableField(value = "Customer_name")
    @ApiModelProperty(value = "顾客名称")
    private String name;

    @TableField(value = "Customer_address")
    @ApiModelProperty(value = "顾客地址")
    private String address;
}
